home *** CD-ROM | disk | FTP | other *** search
/ Delphi Programmer's Power Pack / Delphi Volume 1.iso / s_to_z / uimagine / readme.txt < prev   
Text File  |  1996-09-15  |  2KB  |  50 lines

  1. Imagine.dll
  2.  
  3. What is it?
  4.   Imagine.dll is a dynamic link library that gives your 16 bit Delphi
  5. application the ability to read gif, jpg, mac, pcx, tga, and wpg files.
  6. It accomplishes this by converting these files to comparable bitmap
  7. files.  Formats that support true color images (bmp, jpg, pcx, tga) can
  8. also be optionally reduced to 256 colors, allowing users without true
  9. color video boards to view these files.
  10.  
  11. Will it work with Delphi 2?
  12.   Don't know yet.  Imagine.dll is a standard 16 bit dll that "should"
  13. work with Delphi2, Visual Basic, C, C++, etc., but hasn't been tested
  14. with these languages.
  15.  
  16. Why imagine.dll?
  17.   Imagine.dll was conceived as a way to allow programmers to add image
  18. handling to their applications without the overhead and cost of more
  19. elaborate and expensive image libraries.  If you have ever been
  20. overwhelmed by the coding required by some of these libraries, or
  21. frustrated by their inability to handle certain esoteric image subtypes
  22. (such as progressive jpegs, multi-image gifs, or reversed 32-bit targas),
  23. then imagine.dll may be for you.  The source used for the format
  24. conversion has already been used successfully in a wide variety of
  25. applications.
  26.  
  27. How do I use it?
  28.   Just add the image.pas file to your project, make sure imagine.dll is
  29. in your path, and with one line you're done.
  30.  
  31. output := ConvertImage(Callback, Dither, FileIn, FileOut);
  32.  
  33. The parameters are:
  34.  
  35. Callback:  The function to receive progress information from the dll
  36. Dither:  Do you want the colors reduced? (0 = no, 1 = yes, 2 = yes
  37.    ((concerns only jpeg processing - produces high quality bitmaps))
  38. FileIn:  The file to be converted
  39. FileOut:  The bitmap output file
  40.  
  41. The function returns 0 for success or an error for what went wrong.
  42.  
  43. How do I register?
  44.   Registration is only available on Compuserve (GO SWREG, I.D. 10432)
  45. for $35.  Registered users will receive a non-beeping dll, the code for the
  46. shadowed about box used in imagine.exe, and where to find the sources
  47. used for the .dll.
  48.  
  49. Michael Pepperell
  50. June, 1996